package com.lgkj.zhm.controller;


import com.lgkj.zhm.TestZone.SessionManager;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * 这个关于前面页面调取后端接口，获取设备连接数等的工具类接口
 *
 * @author 代星登
 * @date 2021-02-26
 */

@RestController
public class DeviceUtilController {

@GetMapping("/device/onlineNum")
    public int getDeviceOnlineNum(){
       return     SessionManager.getCount();
    }


}
